Document Solutions for PDF
DS.Documents.Imaging.Windows Assembly / GrapeCity.Documents.Imaging.Windows Namespace / GcWicBitmap Class / Load Method / Load(Stream,WicContainerFormat,Int32,Nullable<Rectangle>,BaseTransform[]) Method
The input stream.
The image container format; use Unknown to detect the format automatically.
Index of an image frame to read, pass 0 for image formats not supporting multiple frames.
Clipping rectangle for the image after all transformations.
The transformation chain for the image that is being loaded.

In This Topic
    Load(Stream,WicContainerFormat,Int32,Nullable<Rectangle>,BaseTransform[]) Method
    In This Topic
    Loads the image from a System.IO.Stream. JPEG, PNG, GIF, BMP, TIFF, ICO, JPEG XR formats are supported.
    Syntax
    'Declaration
     
    Public Overloads Sub Load( _
       ByVal stream As System.IO.Stream, _
       ByVal containerFormat As WicContainerFormat, _
       ByVal frameIndex As System.Integer, _
       ByVal imageRect As System.Nullable(Of Rectangle), _
       ByVal ParamArray transforms() As BaseTransform _
    ) 
    public void Load( 
       System.IO.Stream stream,
       WicContainerFormat containerFormat,
       System.int frameIndex,
       System.Nullable<Rectangle> imageRect,
       params BaseTransform[] transforms
    )

    Parameters

    stream
    The input stream.
    containerFormat
    The image container format; use Unknown to detect the format automatically.
    frameIndex
    Index of an image frame to read, pass 0 for image formats not supporting multiple frames.
    imageRect
    Clipping rectangle for the image after all transformations.
    transforms
    The transformation chain for the image that is being loaded.
    See Also